﻿using Microsoft.Practices.Unity;

namespace Arquitetura.Architectural.BusinessLogic
{
    public abstract class BusinessLogicBase
    {
        #region Atributo(s)
        private IUnityContainer m_unityContainer;
        #endregion Atributo(s)

        #region Construtor(es)
        public BusinessLogicBase() { }

        public BusinessLogicBase(IUnityContainer unityContainer)
        {
            m_unityContainer = unityContainer;
        }
        #endregion Construtor(es)

        #region Método(s)
        protected T Resolve<T>()
        {
            return m_unityContainer.Resolve<T>();
        }
        #endregion Método(s)
    }
}

